From: Keir Fraser Date: Wed, 3 Sep 2008 11:45:59 +0000 (+0100) Subject: ACPI: Remove a redundant call to acpi_hw_register_read(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14111^2~52 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=e28712c33886bf658352260bf7aa18653f8408a9;p=xen.git ACPI: Remove a redundant call to acpi_hw_register_read(). Signed-off-by: Wei Gang --- diff --git a/xen/drivers/acpi/hwregs.c b/xen/drivers/acpi/hwregs.c index 2fff2d5cf0..38423bc394 100644 --- a/xen/drivers/acpi/hwregs.c +++ b/xen/drivers/acpi/hwregs.c @@ -239,11 +239,13 @@ acpi_status acpi_set_register(u32 register_id, u32 value) case ACPI_REGISTER_PM2_CONTROL: +#if 0 /* Redundant read in original Linux code. */ status = acpi_hw_register_read(ACPI_REGISTER_PM2_CONTROL, ®ister_value); if (ACPI_FAILURE(status)) { goto unlock_and_exit; } +#endif ACPI_DEBUG_PRINT((ACPI_DB_IO, "PM2 control: Read %X from %8.8X%8.8X\n",